import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from './../views/Home.vue'
import Kind from './../views/Kind.vue'
import Cart from './../views/Cart.vue'
import User from './../views/User.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    component: Home
  },
  {
    path: '/kind',
    component: Kind
  },
  {
    path: '/cart',
    component: Cart
  },
  {
    path: '/user',
    component: User
  }
]

const router = new VueRouter({
  mode: 'hash',
  routes
})
export default router